package com.mydesignpattern.beijing.command.command;

import com.mydesignpattern.beijing.command.receiver.Aircondition;

public class AirConditionCommand extends Command {
    private Aircondition aircondition;

    public AirConditionCommand(){}
    public AirConditionCommand(Aircondition aircondition){
        this.aircondition = aircondition;
    }

    public void on(){
        this.aircondition.on();
    }

    public void off(){
        this.aircondition.off();
    }

    public void warm(){
        this.aircondition.warm();
    }

    public void code(){
        this.aircondition.code();
    }

    public void windUp(){
        this.aircondition.windUp();
    }

    public void windDown(){
        this.aircondition.windDown();
    }
}
